package com.atguigu.serviceedu.client;

import com.atguigu.commonutils.R;
import com.atguigu.serviceedu.client.impl.VodFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)//调用的方法
@Component
public interface VodClient {
    //小节中删除单个视频
    @DeleteMapping("/eduvod/video/{videoId}")
    R deleteVideoAly(@PathVariable("videoId") String videoId);
    //课程列表删除多个视频
    @DeleteMapping("/eduvod/video/delete-batch")
    R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
